package com.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;


/**
 *
 * @author xiezc
 * @date 2016年8月18日 下午10:45:17
 */
public class OnlineUser {
	
	private Date createTime = new Date();

	// 用户的登录后的令牌
	private String token;
	// 登录的用户
	private User user;
	// 该用户的好友
	private Set<Friend> friends=new HashSet<>();
	
	
	public OnlineUser() {
		super();
	}

	public OnlineUser(String token, User user, Set<Friend> friends) {
		super();
		this.token = token;
		this.user = user;
		this.friends = friends;
		this.createTime = new Date();
	}

	public User getUser() {
		return user;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Set<Friend> getFriends() {
		return friends;
	}

	public void setFriends(Set<Friend> friends) {
		this.friends = friends;
	}

}
